from django.apps import AppConfig

from tools import *

contact = None
message = None
config = None


class AppConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'app'

    def ready(self):
        global contact, message,config
        config = OmegaConf.load("data/config.yaml")
        contact, message = load_data(config)
